While at the Springfield Cemetery mourning the loss of her pet goldfish, Lisa inadvertently discovers the grave of William H. Bonney, a man who was killed in his youth by gun violence. According to his epitaph, he "dreamed of a world without guns." In his memory, Lisa starts a gun control crusade, which makes Springfield 100% gun-free; even the police no longer possess guns. The town is now defenseless, causing the corpses of Bonney, in reality notorious outlaw Billy the Kid, and his "Hole-in-the-Ground" gang Frank and Jesse James, the Sundance Kid, and Kaiser Wilhelm II to rise from the dead. The gang wreaks havoc on the town until Professor Frink invents a time machine, which Homer uses to go back in time to stop the gun ban and destroy the zombies. Homer tells the citizens of Springfield to shoot at the zombies' graves, causing them to rise up and flee. Lisa feels guilty about banning guns, concluding that sometimes they are the answer. A futuristic Homer suddenly appears to warn them about guns that have destroyed Earth in the future, only to be shot by Moe, who is fed up with all the contradictory messages. Moe then commandeers Frink's time machine to find some "caveman hookers".